-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add codegen test for 112169 #124087
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add codegen test for 112169 #124087
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged. You can start a rebase with the following commands:
The following commits are merge commits: |
2d76189
to
e66f88c
Compare
r=me with commits squashed. Thanks! |
438c40d
to
9c77de1
Compare
Commits squashed 🫡 |
@SadiinsoSnowfall: 🔑 Insufficient privileges: Not in reviewers |
…lacrum Add codegen test for 112169 Add codegen test for rust-lang#112169. The test passes but it's my first time using FileCheck, don't hesitate to tell me if this can be improved ^^
This comment has been minimized.
This comment has been minimized.
💔 Test failed - checks-actions |
Well, that's... surprising |
Looks like LLVM doesn't make any optimizations in |
Is this by design ? If so, should I add something like |
|
6bb9ed3
to
fb5f05e
Compare
Hm, this makes me think that this issue isn't really fixed. We get it now as a combination of vectorization and unrolling, but that just pushes the constant up. If you replace 102 with say 1002, the issue still exists. As far as I can tell, this is a phase ordering problem now. We successfully peel the first iteration now and bring the loop into an analyzable form, but this happens after induction variable simplification has already run, so we fail to simplify the loop further. |
I'm curious about the status of this PR. Can anyone with some context share and what is needed to move it forward. I'll set it to waiting on author because I'm not completely sure it's ready for review @rustbot author |
The related issue hasn't been solved yet, so there's no need to add a codegen test yet I guess :/ |
Yeah, I think we can close this PR for now ... the situation has improved, but the issue isn't fully fixed yet. |
Add codegen test for #112169.
The test passes but it's my first time using FileCheck, don't hesitate to tell me if this can be improved ^^
Fixes #112169